<template>
  <el-carousel :interval="4000" type="card" height="200px" class="carousel">
    <el-carousel-item v-for="(item, index) in list" :key="index">
      <img :src="item.imageUrl" alt />
    </el-carousel-item>
  </el-carousel>
</template>

<script>

export default {
  data () {
    return {

    }
  },
  props: {
    list: {
      type: Array,
      default: function () {
        return []
      }
    }
  }
}
</script>

<style lang="less" scoped>
.carousel {
  .el-carousel__item--card {
    width: 483px;
  }
  img {
    width: 100%;
    height: 100%;
  }
}
</style>
